class Person:
    species = "Homo sapines"

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def isinstance(self):
        return f"我是{self.name},现在{self.age}岁"

    def have_birthday(self):
        self.age += 1
        return f"我是{self.name},现在{self.age}岁"

    @classmethod
    def get_species(cls):
        return cls.species

    @staticmethod
    def is_adult(age):
        return age >= 18


def class_object_demo():
    person1 = Person("张三", 20)
    person2 = Person("李四", 17)

    print(person1.isinstance())
    print(person2.isinstance())

    print(f"人类：{Person.get_species()}")

    print(f"{person1.name},是成年人吗，{Person.is_adult(person1.age)}")
    print(f"{person2.name},是成年人吗，{Person.is_adult(person2.age)}")

    person1.have_birthday()


if __name__ == "__main__":
    class_object_demo()
